package com.shop.mapper;

import com.shop.entity.SysPerssion;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysPerssionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysPerssion record);

    int insertSelective(SysPerssion record);

    SysPerssion selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysPerssion record);

    int updateByPrimaryKey(SysPerssion record);

    List<SysPerssion> findSysPerssion(Map<String,Object> map);

    Integer findSysPerssionCount(Map<String,Object> map);

    List<SysPerssion> findPerssionResouceByRoleId(List<Integer> list);
}